package com.test.ioc.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties("student")
@Component
@Data
public class Student {
//    id: 1
//    name: zhangsan
//    age: 18
    private Integer id;
    private String name;
    private Integer age;
}
